<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>修改角色</title>
    <link rel="stylesheet" href="/asset/layui/css/layui.css">
    <link rel="stylesheet" href="/asset/css/index.css">
    <link rel="Shortcut Icon" href="cachet.ico">
    <script type="text/javascript" src="/asset/js/jquery-3.3.1.min.js"></script>
	<script src="/asset/layui/layui.js"></script>
    <script src="/asset/js/common.js"></script>
</head>
<body >
<div class="alert_bigbox">

	<form class="layui-form">
          <div class="layui-form-item">
		    <div class="layui-inline">
		      <label class="layui-form-label">设备编号</label>
		      <div class="layui-input-inline layui-form-mid layui-word-aux">
		        ${devices.devicesCode}
		      </div>
		    </div>
		    <div class="layui-inline">
		      <label class="layui-form-label">型号</label>
		      <div class="layui-input-inline layui-form-mid layui-word-aux">
		        ${devices.model}
		      </div>
		    </div>
		  </div>
          
          <div class="layui-form-item">
		    <div class="layui-inline">
		      <label class="layui-form-label">开通日期</label>
		      <div class="layui-input-inline layui-form-mid layui-word-aux">
		      	<#if devices.installDate??>
		        ${devices.installDate?string('yyyy-MM-dd')}
		        </#if>
		      </div>
		    </div>
		    <div class="layui-inline">
		      <label class="layui-form-label">失效日期</label>
		      <div class="layui-input-inline layui-form-mid layui-word-aux">
		        <#if devices.expireDate??>
		        ${devices.expireDate?string('yyyy-MM-dd')}
		        </#if>
		      </div>
		    </div>
		  </div>
          
          <#if devices.company != null> 
          <div class="layui-form-item">
		    <div class="layui-inline">
		      <label class="layui-form-label">公司名称</label>
		      <div class="layui-input-inline layui-form-mid layui-word-aux">
		        ${devices.company.companyName}
		      </div>
		    </div>
		    <div class="layui-inline">
		      <label class="layui-form-label">使用次数</label>
		      <div class="layui-input-inline layui-form-mid layui-word-aux">
		        ${devices.useTimes} 次
		      </div>
		    </div>
		  </div>
		  
		  <div class="layui-form-item">
		    <div class="layui-inline">
		      <label class="layui-form-label">是否启用</label>
		      <div class="layui-input-inline layui-form-mid layui-word-aux">
		      	<#if devices.activate == 'Y'> 是 <#else> 否 </#if>
		      </div>
		    </div>
		    <div class="layui-inline">
		      <label class="layui-form-label">设备状态</label>
		      <div class="layui-input-inline layui-form-mid layui-word-aux">
		        <@linkage type='DEVICES_STATUS' key=devices.devicesStatus>
                		${linkage.name}
                </@linkage>
		      </div>
		    </div>
		  </div>
          </#if>
          
      </form>
</div>

</body>
</html>